
from .api_search_need import ApiSearch

from flask import Flask, request, Blueprint

from . import app_search_need

@app_search_need.route('/search_need', methods=['GET', 'POST'])
    
def search_need():

    methods = request.method

    info = request.args

    keyword = info.get('keyword')

    with ApiSearch() as conn_api:

        result_info = conn_api.search_need_api(methods, keyword)

    return result_info
